package cn.trigram.uuid.bd.buffer;

import java.util.List;

/**
 * Buffered UID provider(Lambda supported), which provides UID in the same one second
 * <br/>
 * 缓存UID提供器，提供在同一秒内的UID
 * 
 * @author yutianbao
 */
@FunctionalInterface
public interface BufferedUidProvider {

    /**
     * Provides UID in one second
     * <br/>
     * 提供在一秒内的UID
     * 
     * @param momentInSecond 时间值，以秒为单位
     * @return UID的集合
     */
    List<Long> provide(long momentInSecond);
}
